import os
import rock_hammer as rh
from pathlib import Path

os.chdir(Path.cwd())

temp_path = Path('_temp_header.h')
src_path = Path('mylib.h')

rh.create_temp_copy_from_text_file(src_path, temp_path, 'utf-8', remove_cr = True)

d = rh.parse_c_header_symbol(temp_path)
rh.print_c_parsed_symbol(d)

print()
os.system('pause')
os.remove(temp_path)
